﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace OrderApi.Controllers
{
    [Route("[controller]")]
    [ApiController]
    public class OrderController(IConfiguration _configuration) : ControllerBase
    {
        [HttpGet]
        public IActionResult Get()
        {
            //   _serviceHelper.GetServices();
            string result = $"[订单服务]{DateTime.Now.ToString()}--+{Request.HttpContext.Connection.LocalIpAddress}" +
                $":{Request.HttpContext.Connection.LocalPort}--defaultProt:{_configuration["ConsulSetting:ServicePort"]}";
            return Ok(result);
        }
    }
}
